package com.elephant.initializationBean.annotationScan;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Component;

/**
 * @author 林
 * @create 2025-06-18 9:50
 */
@Component
public class Car extends ClassPathXmlApplicationContext {
	private String id;
	private String name;


	//获取实例
	public String getCar() {
		return "测试Auto";
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
